<template>
  <div class="empty">
    <a-result status="404" title="404" sub-title="Sorry, the page you visited does not exist.">
      <template #extra>
        <a-button type="primary" @click="goBack">Back Home</a-button>
      </template>
    </a-result>
  </div>
</template>

<script setup lang="ts">
const router = useRouter()
const goBack = () => {
  // console.log('返回首页')
  router.replace('/')
}
</script>

<style scoped lang="less">
.empty {
  width: 100%;
  height: 100%;
}
</style>
